package com.zhentao.model.social.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ap_user_social
 */
@TableName(value ="ap_user_social")
@Data
public class ApUserSocial implements Serializable {
    /**
     * 用户社交表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 上传的图片
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 上传的内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 点赞数量
     */
    @TableField(value = "like_num")
    private Integer likeNum;

    /**
     * 审核状态（0/审核失败 1/审核成功）
     */
    @TableField(value = "audit_status")
    private Integer auditStatus;
    /**
     * 动态可见状态（0/所有人可见 1/仅自己可见）
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField(value = "updated_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date updatedTime;

    /**
     * 失败原因
     */
    @TableField(value = "reason")
    private String reason;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
